<?php
/**
 * Minhlog Domain_Entity 文章内容类
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @category   Domain
 * @package    Domain_Entity
 * @copyright  Copyright (c) 2009-2010 Minh.Shu@gmail.com
 * @license    New BSD License
 * @author     Minh.Shu
 * @version    $Id: Article.php 2 2010-01-17 13:49:08Z Minh.Shu $
 *
 */

class Domain_Entity_Article extends Domain_Entity_Abstract
{
    protected $_articleId;
    protected $_authorId;
    protected $_categoryId;
    protected $_articleTitle;
    protected $_articleSummary;
    protected $_articleContent;
    protected $_publishTime;
    protected $_clickCount;
    protected $_commentCount;

    // set/get方法定义开始
    public function setPrimaryId ($primaryId)
    {
        return $this->setArticleId($primaryId);
    }

    public function getPrimaryId ()
    {
        return $this->getArticleId();
    }

    public function setArticleId ($articleId)
    {
        $this->_articleId = (int) $articleId;
        return $this;
    }

    public function getArticleId ()
    {
        return $this->_articleId;
    }

    public function setAuthorId ($authorId)
    {
        $this->_authorId = (int) $authorId;
        return $this;
    }

    public function getAuthorId ()
    {
        return $this->_authorId;
    }

    public function setCategoryId ($categoryId)
    {
        $this->_categoryId = (int) $categoryId;
        return $this;
    }

    public function getCategoryId ()
    {
        return $this->_categoryId;
    }

    public function setArticleTitle ($articleTitle)
    {
        $this->_articleTitle = (string) $articleTitle;
        return $this;
    }

    public function getArticleTitle ()
    {
        return $this->_articleTitle;
    }

    public function setArticleSummary ($articleSuammry)
    {
        $this->_articleSummary = (string) $articleSuammry;
        return $this;
    }

    public function getArticleSummary ()
    {
        return $this->_articleSummary;
    }

    public function setArticleContent ($articleContent)
    {
        $this->_articleContent = (string) $articleContent;
        return $this;
    }

    public function getArticleContent ()
    {
        return $this->_articleContent;
    }

    public function setPublishTime ($publishTime)
    {
        $this->_publishTime = (string) $publishTime;
        return $this;
    }

    public function getPublishTime ()
    {
        return $this->_publishTime;
    }

    public function setClickCount ($clickCount)
    {
        $this->_clickCount = (int) $clickCount;
        return $this;
    }

    public function getClickCount ()
    {
        return $this->_clickCount;
    }

    public function setCommentCount ($commentCount)
    {
        $this->_commentCount = (int) $commentCount;
        return $this;
    }

    public function getCommentCount ()
    {
        return $this->_commentCount;
    } // set/get方法定义结束
}